#include <stdio.h>
#include <stdlib.h>
void main()
{
    int time;
    printf("please enter time value:");
    scanf("%d", &time);
    printf("time=%d\n", time);
    if (time==1)
    printf("today is monday\n");
    else if (time==2)
    printf("today is tuesday\n");
    else if (time==3)
    printf("today is wednesday\n");
    else if (time==4)
    printf("today is thursday\n");
    else if (time==5)
    printf("today is friday\n"); 
    else if (time==6)
    printf("today is saturday\n");
    else if (time==7)
    printf("today is sunday\n");
    system("pause");

    }